Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fgCanTailCallViaJitHelper #70033

Merged
merged 3 commits into from
Jun 1, 2022

Conversation

jakobbotsch
Copy link
Member

FEATURE_READYTORUN is always defined except for single-file JIT. The
right check here is Compiler::Options::IsReadyToRun().

Fix #70013

FEATURE_READYTORUN is always defined except for single-file JIT. The
right check here is Compiler::Options::IsReadyToRun().

Fix dotnet#70013
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 31, 2022
@ghost ghost assigned jakobbotsch May 31, 2022
@ghost
Copy link

ghost commented May 31, 2022

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

FEATURE_READYTORUN is always defined except for single-file JIT. The
right check here is Compiler::Options::IsReadyToRun().

Fix #70013

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@@ -17526,10 +17526,15 @@ bool Compiler::fgCheckStmtAfterTailCall()
//
bool Compiler::fgCanTailCallViaJitHelper()
{
#if !defined(TARGET_X86) || defined(UNIX_X86_ABI) || defined(FEATURE_READYTORUN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did it basically turn helper-based tailcalls off for jit?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so I guess we need more (if we have any) microbenchmarks written in F#

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I thought I responded but can't see my comment..?)

did it basically turn helper-based tailcalls off for jit?

No, it just made x86 use the same mechanism we use on all other platforms.

If so I guess we need more (if we have any) microbenchmarks written in F#

That would be great, and yes, this would probably have shown up as a noticeable perf regression.

@jakobbotsch
Copy link
Member Author

Looks like this bit rotted slightly, probably because of #67238.

@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch jakobbotsch merged commit e32b0d1 into dotnet:main Jun 1, 2022
@jakobbotsch jakobbotsch deleted the fix-fgCanTailCallViaJitHelper branch June 1, 2022 09:15
@ghost ghost locked as resolved and limited conversation to collaborators Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What was the reason to inject DispatchTailCalls method after profiler instrumentation in .NET 7.0?
2 participants